//
//  HomeModel.m
//  RainbowFM
//
//  Created by chenli on 14/12/31.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import "HomeModel.h"
#import "HomeAPI.h"

@implementation HomeModel

+(instancetype)sharedModel
{
    static HomeModel *homeModel = nil;
    static dispatch_once_t once;
    
    dispatch_once(&once, ^{
        homeModel = [[HomeModel alloc] init];
    });
    
    return homeModel;
}


-(void)fetchHomeStructure:(void (^)(BOOL, NSArray *, NSString *))res{
    HomeAPI *api = [[HomeAPI alloc] init];
    [api fetchHomeStructure:^(NSArray *structure, NSString *msg) {
        if (structure!=nil) {
            
        }
    }];
}

@end
